package io.renren.modules.se.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.renren.common.service.impl.CrudServiceImpl;
import io.renren.modules.se.dao.ReturnListDao;
import io.renren.modules.se.dto.ReturnListDTO;
import io.renren.modules.se.entity.ReturnListEntity;
import io.renren.modules.se.service.ReturnListService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 器材归还记录表
 *
 * 
 * 
 */
@Service
public class ReturnListServiceImpl extends CrudServiceImpl<ReturnListDao, ReturnListEntity, ReturnListDTO> implements ReturnListService {

    @Override
    public QueryWrapper<ReturnListEntity> getWrapper(Map<String, Object> params){
        String id = (String)params.get("id");

        QueryWrapper<ReturnListEntity> wrapper = new QueryWrapper<>();
        wrapper.eq(StringUtils.isNotBlank(id), "id", id);

        return wrapper;
    }


}